package com.abel.roommanager.controller;

import java.util.List;

import javax.annotation.Resource;

import org.springframework.context.annotation.Scope;
import org.springframework.stereotype.Controller;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.ResponseBody;

import com.abel.roommanager.pojo.Teacher;
import com.abel.roommanager.service.TeacherService;

@Controller
@RequestMapping("/teacher")
@Scope("prototype")
public class TeacherController {
	@Resource
	private TeacherService teacherService;
	@RequestMapping("findAll")
	@ResponseBody
   public List<Teacher> findAll() {
	return teacherService.findAllTeacher();
	
}
}
